package com.mgg.auth.constant;

/**
 * @Author: lijun
 * @Date: 2018/9/3 15:13
 */
public interface SecurityConstants {
	
	/**
	 * 默认的处理验证码的url前缀
	 */
	public static final String VALIDATE_CODE_SEND_URL = "/code/sms";

	/**
	 * 默认的用户名密码登录请求处理url
	 */
	public static final String LOGIN_PROCESSING_URL_FORM = "/authentication/form";
	
	/**
	 * 默认的手机验证码登录请求处理url
	 */
	public static final String LOGIN_PROCESSING_URL_MOBILE = "/authentication/mobile";
	
	/**
	 * OPENID登录请求处理url
	 */
	public static final String LOGIN_PROCESSING_URL_OPENID = "/authentication/openid";

	/**
	 * 验证短信验证码时，http请求中默认的携带短信验证码信息的参数的名称
	 */
	public static final String PARAMETER_NAME_CODE_SMS = "smsCode";
	
	/**
	 * 发送短信验证码 或 验证短信验证码时，传递手机号的参数的名称
	 */
	public static final String PARAMETER_NAME_MOBILE = "mobile";

	public static final String PARAMETER_NAME_OPENID = "openId";

	public static final String PARAMETER_NAME_PROVIDERID = "providerId";

	public static final String LOGIN_PROCESSING_URL_FROM = "/me";

}
